package com.meta.platform.login.plus.wechat.http.resp;

import com.meta.platform.login.plus.common.annotations.WeChatField;

import lombok.Data;

/**
 * 微信响应消息基类
 *
 * @author pengjianfeng
 * @version 1.0
 * @date 2021/1/22 9:18 上午
 */
@Data
public class WeChatBaseResponse {
    
    /**
     * 错误码
     */
    @WeChatField("errcode")
    private Integer errCode;
    
    /**
     * 错误信息
     */
    @WeChatField("errmsg")
    private String errMsg;
    
    public boolean isSuccess() {
        return null == this.errCode || 0 == this.errCode;
    }
}
